package com.example.lawyerdemo.dongao.mapper;

/**
 * @Classname LawyerMapper
 * @Description TODO
 * @Copyright:Copyright(c) 2021
 * @Company 英才汇硕信息科技有限公司
 * @Author zhang
 * @Version 1.0
 * @Date 2023/1/2 10:32
 */

import com.example.lawyerdemo.dongao.entity.Lawyer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 律师档案操作
 * @author zhangwen
 * @version 1.0
 */
@Mapper
public interface LawyerMapper {
    /**
     * 添加律师信息
     * @param lawyer
     */
   int insertLawyer(Lawyer lawyer);

    /**
     * 查询信息
     * @return list
     */
    List<Lawyer> selectLawyer();

    /**
     * 删除信息
     * @param lawyerid
     * @return 成功失败
     */
    int deleteLawyer(int lawyerid);

    /**
     * 按律师编号查询信息
     * @param lawyerid
     * @return 得到律师对象
     */
    Lawyer selectLawyerById(int lawyerid);

    /**
     * 修改律师
     * @param lawyer
     * @return 成功失败
     */
    int updateLawyerById(Lawyer lawyer);
}
